package com.cetc.sdp.kmga.cs.audit;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @description: 规则
 * @author： DengQiang
 * @date: 2017/8/22 15:54
 */
public class AuditRule implements Serializable {

    /**
     * 规则id
     */
    private Integer ruleId;

    /**
     * 资源id
     */
    private Integer resId;

    /**
     * 规则类型
     */
    private Integer type;

    /**
     * 规则名
     */
    private String name;

    /**
     * 数据库
     */
    private String dbName;

    /**
     * 表名
     */
    private String tblName;

    /**
     * 状态，0 不启用 1 启用
     */
    private int stat;

    /**
     * 风险等级
     */
    private Integer riskLevel;

    /**
     * 告警方式
     */
    private Integer alertWay;

    /**
     * 收件人
     */
    private String receiver;

    /**
     * 注册用户名
     */
    private String regUser;

    /**
     * 注册时间
     */
    private String regTime;

    /**
     * 更新用户
     */
    private String updateUser;

    /**
     * 更新时间
     */
    private String updateTime;

    /**
     * 规则条件
     */
    private List<AuditRuleCondition> auditRuleConditions;


    public Integer getRuleId() {
        return ruleId;
    }

    public void setRuleId(Integer ruleId) {
        this.ruleId = ruleId;
    }

    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public int getStat() {
        return stat;
    }

    public void setStat(int stat) {
        this.stat = stat;
    }

    public Integer getRiskLevel() {
        return riskLevel;
    }

    public void setRiskLevel(Integer riskLevel) {
        this.riskLevel = riskLevel;
    }

    public String getRegUser() {
        return regUser;
    }

    public void setRegUser(String regUser) {
        this.regUser = regUser;
    }

    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getTblName() {
        return tblName;
    }

    public void setTblName(String tblName) {
        this.tblName = tblName;
    }

    public Integer getAlertWay() {
        return alertWay;
    }

    public void setAlertWay(Integer alertWay) {
        this.alertWay = alertWay;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public List<AuditRuleCondition> getAuditRuleConditions() {
        return auditRuleConditions;
    }

    public void setAuditRuleConditions(List<AuditRuleCondition> auditRuleConditions) {
        this.auditRuleConditions = auditRuleConditions;
    }

    public static String[] RISK_LEVEL_LOOKUP = {"未审计", "一般行为", "低风险", "中风险", "高风险"};
}
